import axios from '../axios'

/* 
 * 用户管理模块
 */

 // 分页查询
export const findPage = (data) => {
    return axios({
        url: '/cloud/users/list',
        method: 'post',
        data
    })
}

// 查询详情
export const findByid = (data) => {
    return axios({
        url: '/cloud/users/info/'+data.id,
        method: 'get',
        data
    })
}
// 停用/启用
export const updateStatus = (data) => {
    return axios({
        url: '/cloud/users/disableActivation',
        method: 'post',
        data
    })
}



/**
 * 用户审核模块
 */
// 分页查询
export const findExamPage = (data) => {
    return axios({
        url: '/cloud/usercard/list',
        method: 'post',
        data
    })
}

// 查询详情
export const findExamByid = (data) => {
    return axios({
        url: '/cloud/usercard/info/'+data.id,
        method: 'get',
        data
    })
}

//审核
export const review = (data) => {
    return axios({
        url: '/cloud/users/review',
        method: 'post',
        data
    })
}